import {createRouter, createWebHistory, createWebHashHistory} from 'vue-router';

// 通用路由
import BaseRouter from './base/'
// 静态路由
import PageRouter from './page/'
// 动态路由, 对应后台菜单管理
import ViewsRouter from './views/'
import ViewsYwRouter from './views/indexyw.js'


const routes = [...BaseRouter,...PageRouter, ...ViewsRouter,...ViewsYwRouter]
const router = createRouter({
    base: import.meta.env.VITE_APP_BASE,
    history: createWebHistory(),
    routes: routes,
})

export default router
